import { Command } from "../class/Command";
import { GameStatus as _GameStatus } from "../class/Game";
import { toSecond } from "../tool";

export class GameStatus extends Command {
    static commandName = "查看游戏时间"
    static test(commandName: string) {
        return [this.commandName, '游戏时间', '剩余时间'].indexOf(commandName) > -1;
    }
    invoke(): void {
        this.masterRole.message.add(`游戏剩余时间：${toSecond(this.game.getStartTime())}S`)
    }
}